window.addEvent('domready', function(){

	try {
		/*set the animate effect of change password*/
		var mySlide = new Fx.Slide('changePwd');
		mySlide.hide();
		$('pwdToggle').addEvent('click', function(e){	
			e = new Event(e);
			mySlide.toggle();
			e.stop();
		});
		
		/*change profile info*/
		$('chgInfo').onclick = function(event){   
		    $('act').value = 'info';    
		    $('profile').submit();
		};
		
		/*change password*/  
		$('chgPwd').onclick = function(event){      
		    $('act').value = 'pwd';    
		    $('profile').submit();
		};
	} catch (e) {}

});

function on_Delete_Click(oForm, strValue)
{
	oForm.hidid.value = strValue;
	oForm.hidaction.value = "del";
	oForm.submit();
}